/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.tms.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.tms.entity.Resource;
import com.jeeplus.modules.tms.mapper.ResourceMapper;

/**
 * 承运商Service
 * @author dhw
 * @version 2018-01-16
 */
@Service
@Transactional(readOnly = true)
public class ResourceService extends CrudService<ResourceMapper, Resource> {

	public Resource get(String id) {
		return super.get(id);
	}
	
	public List<Resource> findList(Resource resource) {
		return super.findList(resource);
	}
	
	public Page<Resource> findPage(Page<Resource> page, Resource resource) {
		return super.findPage(page, resource);
	}
	
	@Transactional(readOnly = false)
	public void save(Resource resource) {
		super.save(resource);
	}
	
	@Transactional(readOnly = false)
	public void delete(Resource resource) {
		super.delete(resource);
	}
	
}